const app = {
    state:{
        type:0,
		time:['2020-09-11','2020-09-12'],
		chooseCity:{
			areaName:"郑州",
			areaCode:"4101"
		},
		userInfo:{}
    },
    mutations:{
        SET_TYPE:(state,type)=>{
			state.type=type;
		},
		SET_TIME:(state,time)=>{
			state.time=time;
		},
		SET_AREA:(state,chooseCity)=>{
			state.chooseCity=chooseCity;
		}
    },
    actions:{
        SetType({commit},type){
			commit('SET_TYPE',type);
		},
		SetTime({commit},time){
			commit('SET_TIME',time);
		},
		SetArea({commit},chooseCity){
			commit('SET_AREA',chooseCity);
		}
    }
}

export default app
